<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>在线报名</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1, minimum-scale=1">

    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/mobileSelect.css">
    <link rel="stylesheet" href="css/font-awesome.css">
    <link rel="stylesheet" href="css/magic-check.css">
    <link rel="stylesheet" href="css/globle.css">

    <script type="text/javascript" src="js/rem.js"></script>
    <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="js/mobileSelect.js"></script>
    <script type="text/javascript" src="js/mui.min.js"></script>
    <script type="text/javascript" src="js/initjs.js"></script>
    <script type="text/javascript" src="js/jquery.form.min.js"></script>
    <script type="text/javascript" src="js/layer/mobile/layer.js"></script>
    <style>
        .error{
            color: red !important;
        }
    </style>
</head>

<body class="BM_online">
<div class="title">
    回填信息
</div>
<div class="content">
    <form  id="commentForm" method="post" action="" enctype="multipart/form-data">
        <div class="fillinfo">
            <ul id="baoming">
                <li>
                    <label><span>*</span>任务编号：</label>
                    <input type="text" required="" data-msg-required="请输入任务编号" id="code" name="code" placeholder="请输入任务编号">
                </li>
                <li>
                    <label><span>*</span>旺旺名称：</label>
                    <input type="text" required="" data-msg-required="请输入旺旺名称" id="wwName" name="wwName" placeholder="请输入旺旺名称">
                </li>
                <li>
                    <label><span>*</span>金额：</label>
                    <input type="text" required="" data-msg-required="请输入旺旺名称" id="price" name="price" placeholder="请输入旺旺名称">
                </li>
                <li>
                    <label><span>*</span>图片1：</label>
                    <input type="file" name="files"  value="">
                </li>
                <li>
                    <label><span>*</span>图片2：</label>
                    <input type="file" name="files" value="">
                </li>
                <li>
                    <label><span>*</span>图片3：</label>
                    <input type="file" name="files"  value="">
                </li>
                <li>
                    <label><span>*</span>图片4：</label>
                    <input type="file" name="files"  value="">
                </li>
            </ul>
            <div class="ttjj">
                <button class="submit" type="button" onclick="signup()">提交</button>
            </div>
        </div>
    </form>
</div>
<script src="js/jquery.validate.js"></script>
<script type="text/javascript">
    function signup(){
        if(!$('#commentForm').valid()){
            return;
        }

        $('#commentForm').ajaxSubmit({
            type: 'POST',
            dataType: 'json',
            url: serverPath+'/admin/server/order/updateOrder',
            success: function (result) {
                layer.open({
                    content: result.msg
                    ,skin: 'msg'
                    ,time: 2 //2秒后自动关闭
                });
            }
        });
    }
</script>
</body>

</html>